export const toggle = {
    data() {
        return {
            info: {
                isshow: false,
                isAdd: true//添加false编辑
            }
        }
    },
    methods: {
        //点了添加
        willAdd() {
            this.info.isshow = true;
            this.info.isAdd = true;
        },
        willEdit(uid) {
            this.info.isshow = true
            this.info.isAdd = false;
            //调用form.getOne()
            this.$refs.form.getOne(uid)
        }
    }
}

